package study.ct.com.retrofit_rxjava.service;


import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import rx.Observable;
import study.ct.com.retrofit_rxjava.bin.EarningRankQueryResp;
import study.ct.com.retrofit_rxjava.bin.TvLoginOk;

/**
 * Created by ct on 2017/9/27 0027.
 */

public interface MyService {

    @Headers({"Content-Type: application/json","Accept: application/json"})//需要添加头
    @POST("stock/userService/login")
    Observable<TvLoginOk> login(@Body RequestBody fields);

    @Headers({"Content-Type: application/json","Accept: application/json"})//需要添加头
    @POST("stock/earningService/loadMyEarningRank") //收益查询
    Observable<EarningRankQueryResp> loadMyEarningRank(@Body RequestBody fields);

}
